<?php

namespace Esseak\FetchPackage\Http\Controllers\Api\V1;
use Esseak\FetchPackage\Models\Video;

class FetchController 
{
    public function index(){
        $ret = [
           "code"=> 200,
           "status"=> "success",
           "message"=> "ok",
        ];
        $v = Video::orderBy('id')->cursorPaginate(10)->toArray();
        return  response()->json(array_merge($ret,$v));
    }
}
